package com.base.model.api

import com.yfree.model.YModel

//商品列表
class ProductListModel : YModel() {
    var searchItems: List<SearchMainModel>? = null
    var productItems: List<ProductListSubModel>? = null

    class SearchMainModel {
        var id: String? = null
        var title: String? = null
        var items: List<SearchSubModel>? = null
        var isSingle: Boolean? = null
        var value: String? = null

        class SearchSubModel {
            var id: String? = null
            var title: String? = null
            var isSelect: Boolean? = null
        }
    }

    class ProductListSubModel {
        var id: String? = null
        var img: String? = null
        var title: String? = null
        var money1: String? = null
        var money2: String? = null
        var count: String? = null
        var des: String? = null
        var likeContent: String? = null
    }
}

class ProductDetailModel : YModel() {
    var title: String? = null
    var money: String? = null
    var isSave: Boolean? = null
    var count_carts: Int? = null
    var count_sales: Int? = null
    var count_replys: Int? = null
    var serviceID: String? = null
    var serviceName: String? = null
    var serviceAvatar: String? = null
    var items_assets: List<ProductDetailModel_Asset>? = null
    var items_sku: List<ProductDetailModel_Sku>? = null
    var items_param: List<ProductDetailModel_Param>? = null
    var items_detail: List<String>? = null

    class ProductDetailModel_Asset {
        var img: String? = null
        var video: String? = null
    }

    class ProductDetailModel_Sku {
        var id: String? = null
        var title: String? = null
        var img: String? = null
        var money: String? = null
        var count_left: Int? = null
        var count_sales: Int? = null
        var isSelect: Boolean? = null
    }

    class ProductDetailModel_Param {
        var title: String? = null
        var content: String? = null
    }
}
